package com.example.android_three.mvp.activity

import android.text.Editable
import android.text.TextWatcher
import android.widget.TextView

import com.example.android_three.R
import com.example.lib_core.mvc.BaseActivity

class TestView : BaseActivity() {

    var textView: TextView? = null

    override fun getLayoutId(): Int {
        return R.layout.activity_test
    }

    override fun initView() {

        textView = f(R.id.test_text)
    }

    override fun setOperation() {

    }

    override fun setLinstener() {

        textView!!.addTextChangedListener(object : TextWatcher {

            override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {

            }

            override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {

            }

            override fun afterTextChanged(s: Editable) {

            }
        })
    }
}
